import { defineStore } from 'pinia'

export const useChatStore = defineStore(
  'chat-chat',
  () => {
    const first_chat = ref('')

    const setFirstChat = (chat: string) => {
      first_chat.value = chat
    }

    const clear = () => {
      first_chat.value = ''
    }

    return {
      first_chat,
      setFirstChat,
      clear
    }
  },
  {
    persist: true,
  },
)
